<?php defined('SYSPATH') OR die('No direct access allowed.');class User_Controller extends Viewbase_Controller{		public function __construct(){		$this->modelname='user';		$this->controllername='user';		$this->parent_column='';		parent::__construct();		}		public function index(){		$this->listall();	}			public function __preprocess_post($model){		if($_POST['password']==''){			unset($_POST['password']);		}		return $model;	}		public function __postprocess_model($model){		$roleidarray=$this->input->post('roles');				foreach($this->input->post('roles') as $id=>$value){			if($value==1){				$model->add(ORM::factory('role', $id));			}else{				$model->remove(ORM::factory('role', $id));			}		}			$model->save();	}}